﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MPR.Poker.DALEntity.DataCache
{
    public class ClearDataCache
    {
        /// <summary>
        /// Xóa Cache người dùng
        /// </summary>
        public static void UserCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_User);
        }

        public static void MemberTypeCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_MemberType);
        }

        public static void MemberCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_Member);
        }

        public static void CurrencyCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_Currency);
        }

        public static void CountryCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_Country);
        }

        public static void ProvinceCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_Province);
        }

        public static void PrizeCache()
        {
            CacheProvider.Invalidate(CacheProvider.CacheKey_Prize);
        }
    }
}
